﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Personal/Personal_Master.Master" AutoEventWireup="true" CodeFile="~/Personal/Thuyetminhdetai.aspx.cs" CodeBehind="Thuyetminhdetai.aspx.cs" Inherits="NCKH.Personal.Thuyetminhdetai" %>
<%@Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 <script type="text/javascript">
     function displayngaynop() {
         var ngaynopTM = document.getElementById('ngaynopTM');
         ngaynopTM.style.display = 'block'
     }

    </script>
    <style type="text/css">
        #ngaynopTM {
         display:none;
         border:solid 2px black;
         position:absolute;
         background-color:white;
        }
    .auto-style1 {
        width: 177px;
    }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  

    <h3>THUYẾT MINH ĐỀ TÀI</h3>
  <div style="margin-left:50px">
    <table style=" text-align:left">
        <tr>
            <td>Tên đề tài</td>
            <td>
                <asp:DropDownList ID="ddlTenDT" runat="server"></asp:DropDownList> 
            </td>
        </tr>
        <tr>
            <td>Tên nhóm</td>
            <td>
                 <asp:DropDownList ID="ddlTenN" runat="server"></asp:DropDownList> 
            </td>
        </tr>
        <tr>
            <td>Ngày nộp thuyết minh</td>
            <td>
                <asp:TextBox ID="txtngaynopTM" runat="server" Height="22px" ></asp:TextBox>
                 <div id="ngaynopTM"> <asp:Calendar ID="cldngaynopTM" runat="server"  OnSelectionChanged="cldngaynopTM_SelectionChanged"></asp:Calendar></div>
                    <img src="../Images/calendar.png" onclick="displayngaynop()" /></td>
        </tr>
        <tr>       
            <td >Phương pháp NC</td>
             <td>
        <CKEditor:CKEditorControl ID="CKEphuongphap" runat="server" Height="66px" Width="459px"></CKEditor:CKEditorControl> 
                 
          </td>
        </tr>

        <tr>
             <td >Dự kiến sản phẩm</td>
             <td>
        <CKEditor:CKEditorControl ID="CKEsanpham" runat="server" Height="68px" Width="458px"></CKEditor:CKEditorControl> 
          </td>
        </tr>
        <tr>
            <td>Dự kiến địa điểm ƯD</td>
            <td>
                
                  <asp:TextBox ID="txtdiadiemUD" runat="server"></asp:TextBox>
                
            </td>
        </tr>
        <tr>
             <td>Kinh phí</td>
            <td>
                 <asp:TextBox ID="txtkinhphi" runat="server"></asp:TextBox>  
            </td>
        </tr>
        <tr>
           <td  >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td >
                <asp:ImageButton ID="ibtThem" runat="server" ImageUrl="Images/send.png" OnClick="ibtThem_Click" CommandName="Thêm" Height="44px" />Gửi &nbsp; &nbsp; &nbsp; &nbsp;
                
             <asp:ImageButton ID="ibtHuy" runat="server" ImageUrl="Images/xoa.png" OnClick="ibtHuy_Click" CommandName="Xóa" Height="31px" Width="38px" /> Hủy bỏ
                 </td>
        
        </tr>   
       
    </table>
  </div>
        <h3>DANH SÁCH THUYẾT MINH ĐỀ TÀI</h3>
       <asp:GridView ID="grvThongtinTM" runat="server"  AutoGenerateColumns="false"  
             EnableModelValidation="true" onrowcommand="grvThongtinTM_RowCommand" DataKeyNames="MaTM"
             AllowPaging="true" PageSize="3" onpageindexchanging="grvThongtinTM_PageIndexChanging">
 
            <Columns>
               
               
                <asp:BoundField  HeaderText="Đề tài" DataField="TenDT" />
                <asp:BoundField HeaderText="Tên nhóm" DataField="Tennhom" />
                <asp:BoundField HeaderText="Ngày nộp thuyết minh"  DataField="NgaynopbanTM" />
                <asp:BoundField HeaderText="Phương pháp NC"  DataField="PPtiepcanNC"/>
                <asp:BoundField HeaderText="Dự kiến sản phẩm"  DataField="Dukiensanpham"/>
                <asp:BoundField  HeaderText="Dự kiến địa điểm ƯD" DataField="Dukiendiachiungdung" />
                <asp:BoundField HeaderText="Kinh phí "  DataField="KinhphithuchhienDT"/>
                <asp:TemplateField HeaderText="Xóa">
                    <ItemTemplate>
                        <asp:LinkButton ID="lblxoa" runat="server" 
                        CommandName="xoa" 
                        CommandArgument='<%# Eval("MaTM") %>'
                        OnClientClick='return confirm("Có chắc chắn muốn xoá không?");'>
                            <img src="Images/xoa.png" alt="Xóa" title="Xóa"/></asp:LinkButton>
                        </ItemTemplate>
                     </asp:TemplateField>
                <asp:TemplateField HeaderText="Sửa">
                    <ItemTemplate>
                        <a href='Thuyetminhdetai_Sua.aspx?pid=<%# Eval("MaTM") %>'>
                        <img src="Images/edit.png" alt="Sửa" title="Sửa"/></a>
                
                    </ItemTemplate>
                     
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
</asp:Content>
